package com.zzq.base.awesome.api.service;

import com.zzq.base.awesome.api.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵自强
 * @since 2020-02-09
 */
public interface UserService extends IService<User> {

    User getUserOnLogin(String userName);

    boolean isPasswordOk(User user, String password);

    boolean isCanRegister(String account, String mail, String password, String mobile,String userName);

    boolean haveSameUser(String account, String mail, String mobile);

    boolean canUpdate(int id, String account, String mail, String mobile);
}
